package com.guyaning.deyson_core.core.ui.refresh;

/**
 * Created by Administrator on 2018/6/12.
 */

public final class PagingBean {

    //当前是第几页
    public int mPageIndex = 0;

    //总共有多少条数据
    public int mTotol = 0;

    //一共分几页
    public int mPageSize = 0;

    //每页显示多少数据
    public int mCurrentSize = 0;

    //加载延迟
    public int mDelay = 0;

    public int getPageIndex() {
        return mPageIndex;
    }

    public PagingBean setPageIndex(int mPageIndex) {
        this.mPageIndex = mPageIndex;
        return this;
    }

    public int getTotol() {
        return mTotol;
    }

    public PagingBean setTotol(int mTotol) {
        this.mTotol = mTotol;
        return this;
    }

    public int getPageSize() {
        return mPageSize;
    }

    public PagingBean setPageSize(int mPageSize) {
        this.mPageSize = mPageSize;
        return this;
    }

    public int getCurrentSize() {
        return mCurrentSize;
    }

    public PagingBean setCurrentSize(int mCurrentSize) {
        this.mCurrentSize = mCurrentSize;
        return this;
    }

    public int getDelay() {
        return mDelay;
    }

    public PagingBean setDelay(int mDelay) {
        this.mDelay = mDelay;
        return this;
    }

    PagingBean addIndex() {
        mPageIndex++;
        return this;
    }
}
